You are here: Scripting examples > Using variables to resume a target

Using variables to resume a target

The following script uses variables to identify the target and credentials to login to that target. These variables are then used in the scripting commands to resume the target.

$TheTarget = "beta";

$TheUser = "admin";

$ThePassword = "password";

$TheDomain = "domain.com";

login $TheTarget $TheUser $ThePassword $TheDomain;

target $TheTarget;

resumetarget $TheTarget;